﻿using System;

using SharedGenomics.Core;
using SharedGenomics.Workbench.Core;
using SharedGenomics.Workbench.Services;
using SharedGenomics.Domain;

namespace SharedGenomics.Workbench.Services
{
    public class WCFFileSetUploadService : WCFClientHost, IFileSetUploadService
    {
        public Maybe<FileSetUploadInfo> CreateFileSet(string fileSetName, int fileSchemaId, SharedGenomics.DataAccess.GenotypeDataFileFormat genotypeFileFormat)
        {
            return this.ExecuteProxyContract<DataService.IDataService, FileSetUploadInfo>(ds => ds.CreateFileSet(fileSetName, fileSchemaId, genotypeFileFormat)).Just();
        }
    }
}
